home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / writenow.797 < prev   
Text File  |  1992-02-06  |  1KB  |  30 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Courier;\f1\fswiss Helvetica;}
  2. \paperw11440
  3. \paperh9000
  4. \margl120
  5. \margr120
  6. {\colortbl\red0\green0\blue0;}
  7. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f0\b0\i0\ul0\fs28\fc0 WriteNow date format
  8. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 \
  9. \
  10. Q:  How can I change the date format in WriteNow?  I'd like to be able to spell the name of  the day completely.\
  11. \
  12. A:    
  13. \fc0 NeXT uses the defaults database to control the formatting of time and date strings.  If you want the date written as "Thursday, July 18, 1991" type the following in a shell:\
  14. \
  15.  
  16. \fs32     
  17. \f2\fs24 dwrite GLOBAL NXDate "%A, %B %d, %Y"
  18. \f0\fs32 \
  19.  
  20. \fs28 \
  21. The meaning of "%A", etc. in the format string can be found in the second edition of Kernighan and Ritchie's "The C Programming Language" (pp. 256-257; discussion of strftime()).  See also /NextLibrary/Documentation/NextDev/ReleaseNotes/CLibLocalization.rtf for further information.\
  22. \
  23. \
  24. QA797\
  25. \
  26. Valid for 1.0\
  27. Valid for 2.0\
  28. \
  29.  
  30.